//package com.turing.post.cardmanagement.impl;
//
//import javax.ejb.EJB;
//import javax.ejb.Local;
//import javax.ejb.Remote;
//import javax.ejb.Stateless;
//
//import com.turing.post.cardmanagement.util.CardClassicBindMerchant;
//import com.turing.post.cardmanagement.util.CardClassicBindMerchantBusiness;
//import com.turing.post.cardmanagement.util.CardClassicBindMerchantDao;
//import com.turing.post.cardmanagement.util.CardManaApplicationException;
//import com.turing.post.cardmanagement.util.CardManaRespCode;
//import com.turing.post.util.PCPSApplicationException;
//
//@Stateless(mappedName = "cardmanagement.impl.CardClassicBindMerchantBusinessImpl")
//@Remote
//@Local
//public class CardClassicBindMerchantBusinessImpl implements
//		CardClassicBindMerchantBusiness {
//	
//	@EJB(mappedName = "cardmanagement.impl.CardClassicBindMerchantDaoImpl")
//	private CardClassicBindMerchantDao classicBindMerchantDao;
//	
//	@Override
//	public void insertCardClassicBindMerchant(CardClassicBindMerchant obj)
//			throws PCPSApplicationException {
//		if (obj == null) {
//			throw new CardManaApplicationException(
//					CardManaApplicationException.ERRMSG_NULLPOINTER,
//					CardManaRespCode.RC_ARGS_NULL, "参数为NULL");
//		}
//		if(obj.getCardClassicId()==null){
//			throw new CardManaApplicationException(
//					CardManaApplicationException.ERRMSG_NULLPOINTER,
//					CardManaRespCode.RC_ARGS_NULL, "参数为NULL");
//		}
//		if(obj.getMerchantNo()==null){
//			throw new CardManaApplicationException(
//					CardManaApplicationException.ERRMSG_NULLPOINTER,
//					CardManaRespCode.RC_ARGS_NULL, "参数为NULL");
//		}
//		classicBindMerchantDao.insertCardClassicBindMerchant(obj);
//	}
//
//	@Override
//	public void delCardClassicBindMerchant(CardClassicBindMerchant obj)
//			throws PCPSApplicationException {
//		if (obj == null) {
//			throw new CardManaApplicationException(
//					CardManaApplicationException.ERRMSG_NULLPOINTER,
//					CardManaRespCode.RC_ARGS_NULL, "参数为NULL");
//		}
//		if(obj.getCardClassicId()==null){
//			throw new CardManaApplicationException(
//					CardManaApplicationException.ERRMSG_NULLPOINTER,
//					CardManaRespCode.RC_ARGS_NULL, "参数为NULL");
//		}
//		if(obj.getMerchantNo()==null){
//			throw new CardManaApplicationException(
//					CardManaApplicationException.ERRMSG_NULLPOINTER,
//					CardManaRespCode.RC_ARGS_NULL, "参数为NULL");
//		}
//		classicBindMerchantDao.delCardClassicBindMerchant(obj);
//	}
//
//}
